package cn.com.api.mapper.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import cn.com.api.entity.ApiT_delivery_account_detail;

//DAO
public interface T_delivery_account_detailMapperBase {

	// 根据id查看
	@Select("SELECT * FROM t_delivery_account_detail  WHERE id = #{id}")
	public ApiT_delivery_account_detail findT_delivery_account_detailById(Integer id);

	// 查看数据集
	@Select("SELECT * FROM T_delivery_account_detail")
	public List<ApiT_delivery_account_detail> findT_delivery_account_details();

	// 添加
	@Insert("INSERT INTO t_delivery_account_detail (u_id, createtime, money, type, description, add_uid) VALUES (#{u_id}, #{createtime}, #{money}, #{type}, #{description}, #{add_uid})")
	@Options(useGeneratedKeys = true, keyProperty = "id")
	public int insertT_delivery_account_detail(ApiT_delivery_account_detail t_delivery_account_detail);

	// 修改
	@Update("UPDATE t_delivery_account_detail SET u_id = #{u_id}, createtime = #{createtime}, money = #{money}, type = #{type}, description = #{description}, add_uid = #{add_uid} WHERE id = #{id}")
	public int updateT_delivery_account_detail(ApiT_delivery_account_detail t_delivery_account_detail);

	// 删除
	@Delete("DELETE FROM t_delivery_account_detail  WHERE id = #{id}")
	public int deleteT_delivery_account_detail(Integer id);

	// Foreign keys revelant

	// region Indexs revelant

}
